package game;

import controller.GameListener;
import window.MainPanel;
import window.MainWindow;

/**
 * @说明 游戏的入口点，main函数放在这
 * @author Passerby
 */
public class GameStart {

	public static void main(String[] args) {
		MainWindow mainWindow = new MainWindow();//实例化窗口
		
		MainPanel mainPanel =new MainPanel();//实例化面板
		
		//实例化监听
		GameListener listener=new GameListener();
		//实例化主线程
		
		mainWindow.setjPanel(mainPanel);
		//注入监听
		mainWindow.setListener(listener);
		//注入线程
		GameThread thread = new GameThread();
		mainWindow.setThread(thread);
		
		mainWindow.start();

	}

}
